import $http from '@/common/api/request.js'
const preUrl='/faddress'
export default{
	add(address){
		return $http.request({
			url: preUrl + '/add',
			method:'POST',
			data:address
		});
	},
	get(addressId){
		return $http.request({
			url: preUrl + '/get/' + addressId,
			method:'GET',
		});
	},
	gets(){
		return $http.request({
			url: preUrl + '/get',
			method:'GET',
		});
	},
	update(address){
		return $http.request({
			url: preUrl + '/update',
			method:'POST',
			data:address
		});
	},
	delete(addressId){
		return $http.request({
			url: preUrl + '/delete/' + addressId,
			method:'DELETE',
		});
	}
}